'use strict';
const uniPush = uniCloud.getPushManager({appId:"__UNI__D51ABA6"}) //注意这里需要传入你的应用appId，用于指定接收消息的客户端

exports.main = async (event, context) => {
	// const data = JSON.parse(event.body||'{}');

	//event为客户端上传的参数
	return await uniPush.sendMessage({
		"push_clientid": 'ee538dc39f69f90d871b75ec0a75e937', 	//填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
		"title": "你好啊",	
		"content": "道爷成立了",
		"force_notification":true, 
		"payload": {
			"text":"体验一下uni-push2.0, 666"
		}
	})
};
